package com.itheima.dao;

import com.itheima.pojo.Member;

import java.util.List;
import java.util.Map;

/**
 * @author 黑马程序员
 * @Company http://www.ithiema.com
 * @Version 1.0
 */
public interface MemberDao {
    Member findByTelephone(String telephone);

    void add(Member member);

    void edit(Member member);

    long findCountBeforeByDate(String date);
    long findCountBetweenDate(String starTime,String endTime);

    List<Map<String,String>> findMemberCountBySex();
    List<Map<String,String>> findMemberCountByAge();


    long findTodayNewMember(String todayDate);

    long findTotalCount();

    long findCountByAfterDate(String thisWeekMonday);
}
